package com.mephi.oshs.view.elements;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Widget;

public class Clickable implements IClickable {

    private final Widget widget;

    public Clickable(Widget widget) {
        this.widget = widget;
    }

    @Override
    public void addClickListener(final Listener listener) {
        this.widget.addListener(SWT.MouseDown, listener);
    }
}
